package com.cy.ppj.model.domian.banner;

import java.util.Date;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.cy.ppj.comm.annotation.OssUrl;
import com.cy.ppj.model.enums.CommonStatus;
import com.cy.ppj.model.enums.banner.BannerType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * banner
 *
 * @author: tanyilin
 * @create: 2018年9月20日 下午5:15:08
 */
@Data
@OssUrl
@ApiModel("banner信息字段")
@Table(name = "t_banner")
public class Banner {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	
	/** banner类型 */
	@ApiModelProperty(value = "banner类型")
	private BannerType type;
	
	/** 标题 */
	@ApiModelProperty(value = "标题")
	private String title;
	
	/** 排序 */
	@ApiModelProperty(value = "排序", example = "0")
	private Integer sort;
	
	/** banner地址 */
	@OssUrl
	@ApiModelProperty(value = "banner地址")
	private String path;
	
	/** 跳转地址 */
	@ApiModelProperty(value = "跳转地址")
	private String jumpUrl;
	
	/** 状态 */
	@ApiModelProperty(value = "状态")
	private CommonStatus status;
	
	/** 创建时间 */
	private Date createTime;
	
	/** 更新时间 */
	private Date updateTime;
	
}
